import request from '@/utils/request'

// 查询能源水泵用水量统计列表
export function listPwater(query) {
  return request({
    url: '/energy/pwater/list',
    method: 'get',
    params: query
  })
}

// 查询能源水泵用水量统计列表(分页)
export function pagePwater(query) {
  return request({
    url: '/energy/pwater/page',
    method: 'get',
    params: query
  })
}

// 查询能源水泵用水量统计详细
export function getPwater(id) {
  return request({
    url: '/energy/pwater/get/' + id,
    method: 'get'
  })
}

// 新增能源水泵用水量统计
export function addPwater(data) {
  return request({
    url: '/energy/pwater/add',
    method: 'post',
    data: data
  })
}

// 修改能源水泵用水量统计
export function updatePwater(data) {
  return request({
    url: '/energy/pwater/edit',
    method: 'post',
    data: data
  })
}

// 删除能源水泵用水量统计
export function delPwater(id) {
  return request({
    url: '/energy/pwater/remove/' + id,
    method: 'post'
  })
}

// 获取能源实时信息
export function getRealTimeInfo(query) {
  return request({
    url: '/energy/pwater/getRealTimeInfo',
    method: 'get',
    params: query
  })
}
// 获取能源折线图信息
export function getEnergyChartAll(query) {
  return request({
    url: '/energy/pwater/getEnergyChartAll',
    method: 'get',
    params: query
  })
}
// 查询能源历史表
export function getEnergyHistory(query) {
  return request({
    url: '/energy/pwater/getEnergyHistory',
    method: 'get',
    params: query
  })
}
// 导出能源历史表
export function exportEnergyHistory(query) {
  return request({
    url: '/energy/pwater/exportEnergyHistory',
    method: 'get',
    params: query
  })
}
